#include<iostream>
#include<string>
using namespace std;


int main()
{
	int i = 100;
	double d = 2.3203;
	string str = "TEST";
	const string *ps = &str;
	char *pc;
	strcpy(pc,"TEST");
	void *pv = NULL;

	//(a)
	pv = (void*)ps;
	pv = const_cast<string *>(ps);

	//(b)
	i = int(*pc);
	i = static_cast<int>(*pc);

	//(c)
	pv = &d;
	pv = reinterpret_cast<void *>(&d);

	//(d)
	pc = (char*) pv;
	pc = static_cast<char *>(pv);

	return 0;
}
